<?php
/**
 * 活动流程图
 *
 * @author Administrator
 *
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ActivityPhoto extends Model
{
    //
    protected $table = 'activity_photo';

    protected function getDateFormat()
    {
        return 'U';
    }

    protected $guarded = [''];

    /**
     *所关联到的活动
     */
    public function activity()
    {
        return $this->belongsTo('App\Models\Activity', 'activity_id', 'id');
    }
}
